/*angular.module('moti.services.regionsService', ['restangular'])
    .factory('RegionsInterface', ['Restangular', 'Auth', function(Restangular, Auth){
        var regions = Restangular.all('admin');
        return {
            //获取景区列表
            getRegionsList : function(){
                return regions.customGET(INTERFACE_API.REGIONS, {}, Auth);
            },
            //创建景区
            postRegion : function(region_id, request_body){
                return regions.customPOST(request_body, INTERFACE_API.REGIONS, {}, Auth);
            },
            //获取景区
            getRegion : function(region_id){
                return regions.customGET(INTERFACE_API.REGIONDETAIL.replace(":region_id", region_id), {}, Auth);
            },
            //修改景区
            putRegion : function(region_id, request_body){
                return regions.customPUT(request_body, INTERFACE_API.REGIONDETAIL.replace(":region_id", region_id), {}, Auth);
            },
            //删除景区
            deleteRegion : function(region_id){
                return regions.customDELETE(INTERFACE_API.REGIONDETAIL.replace(":region_id", region_id), {}, Auth);
            }
        }
    }]);*/


/*var regionsResource = {
    resource : Vue.resource(INTERFACE_API.REGIONS + '{/region_id}'),
    getRegions : function(){
        return this.resource.get();
    },
    getRegion : function(region_id){
        return this.resource.get({region_id: region_id});
    }
}*/
